import request from '@/utils/request'

// 查询接口采集点配置列表
export function listPointInterface(query) {
  return request({
    url: '/basic/pointInterface/list',
    method: 'get',
    params: query
  })
}

// 查询接口采集点配置详细
export function getPointInterface(interfaceId) {
  return request({
    url: '/basic/pointInterface/' + interfaceId,
    method: 'get'
  })
}

// 新增接口采集点配置
export function addPointInterface(data) {
  return request({
    url: '/basic/pointInterface',
    method: 'post',
    data: data
  })
}

// 修改接口采集点配置
export function updatePointInterface(data) {
  return request({
    url: '/basic/pointInterface',
    method: 'put',
    data: data
  })
}

// 删除接口采集点配置
export function delPointInterface(interfaceId) {
  return request({
    url: '/basic/pointInterface/' + interfaceId,
    method: 'delete'
  })
}

// 导出接口采集点配置
export function exportPointInterface(query) {
  return request({
    url: '/basic/pointInterface/export',
    method: 'get',
    params: query
  })
}